#ifndef _EXTI_H_
#define _EXTI_H_
#include "sys.h"

#define READ_EXTI1A()  PCin(7)
#define READ_EXTI1B()  PCin(6)
#define READ_EXTI2A()  PBin(15)
#define READ_EXTI2B()  PBin(14)
#define READ_EXTI3A()  PBin(13)
#define READ_EXTI3B()  PBin(12)

#define EXTINUM	6
typedef struct
{
	uint8_t flag[EXTINUM];
}T_EXTI_FLAG;
extern T_EXTI_FLAG T_Exti_flag;

void EXTIX_Init(void);
void Exti_Gpio_Check(void);
#endif

